package com.qf.o2o.pojo;/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */

import java.util.Date;

/**
 * @version v1.0.0
 * @Description:
 * @author: 姜红凯
 * @date: 2022.02.08
 * @since 1.0
 */
public class Passport {
    private Integer id;
    private String nationality;//国籍
    private Date expire;//有效期
    private String passenger_id;


    //定义旅客属性
    private Passenger passenger;

    public Passport() {
    }

    public Passport(Integer id, String nationality, Date expire, String passenger_id) {
        this.id = id;
        this.nationality = nationality;
        this.expire = expire;
        this.passenger_id = passenger_id;
    }

    @Override
    public String toString() {
        return "Passport{" +
                "id=" + id +
                ", nationality='" + nationality + '\'' +
                ", expire=" + expire +
                ", passenger_id='" + passenger_id + '\'' +
                ", passenger=" + passenger +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    public Date getExpire() {
        return expire;
    }

    public void setExpire(Date expire) {
        this.expire = expire;
    }

    public String getPassenger_id() {
        return passenger_id;
    }

    public void setPassenger_id(String passenger_id) {
        this.passenger_id = passenger_id;
    }

    public Passenger getPassenger() {
        return passenger;
    }

    public void setPassenger(Passenger passenger) {
        this.passenger = passenger;
    }
}
